//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.pc.admin.util;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel("分页参数")
public class PageModel {
    @ApiModelProperty("当前页")
    private Integer page = 1;
    @ApiModelProperty("显示条数")
    private Integer rows = 10;
    @ApiModelProperty("查询起始位置")
    private Integer start;

    public Integer getPage() {
        return this.page;
    }

    public Integer getRows() {
        return this.rows;
    }

    public Integer getStart() {
        return this.start;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public void setStart(Integer start) {
        this.start = start;
    }

    @Override
    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof PageModel)) {
            return false;
        } else {
            PageModel other = (PageModel)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label47: {
                    Object this$page = this.getPage();
                    Object other$page = other.getPage();
                    if (this$page == null) {
                        if (other$page == null) {
                            break label47;
                        }
                    } else if (this$page.equals(other$page)) {
                        break label47;
                    }

                    return false;
                }

                Object this$rows = this.getRows();
                Object other$rows = other.getRows();
                if (this$rows == null) {
                    if (other$rows != null) {
                        return false;
                    }
                } else if (!this$rows.equals(other$rows)) {
                    return false;
                }

                Object this$start = this.getStart();
                Object other$start = other.getStart();
                if (this$start == null) {
                    if (other$start != null) {
                        return false;
                    }
                } else if (!this$start.equals(other$start)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof PageModel;
    }

    @Override
    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $page = this.getPage();
//        int result = result * 59 + ($page == null ? 43 : $page.hashCode());
        Object $rows = this.getRows();
        result = result * 59 + ($rows == null ? 43 : $rows.hashCode());
        Object $start = this.getStart();
        result = result * 59 + ($start == null ? 43 : $start.hashCode());
        return result;
    }

    @Override
    public String toString() {
        return "PageModel(page=" + this.getPage() + ", rows=" + this.getRows() + ", start=" + this.getStart() + ")";
    }

    public PageModel(Integer page, Integer rows, Integer start) {
        this.page = page;
        this.rows = rows;
        this.start = start;
    }

    public PageModel() {
    }
}